Building a CPU from the ground up Part 5 - Sequential Logic

Now the ALU is complete the next fundamental building block of a CPU is memory. This will take several forms: * Registers - small 4 bit chunks of memory that are used temporarily as buffers during the processor cycles. * ROM - read only memory, this will hold the programme code. More on the design of this in the next post. * RAM - random access memory. This will be able to hold data more permanently than the registers during programme execution.

Before any of this I will need a few building blocks.

1 Bit D latch
A latch simply remembers a state. For example, if I set the Data line the output will only be changed when the clock signal goes high. When the clock signal is low the output will not change regardless of how many times the input is changed. These latches will be the fundamental building blocks of registers and memory.

Flip flops
I will also need two different types of flip flops. A D type and a JK Type. You can find more information about these [here] (https://docs.circuitverse.org/#/Sequential).

Comments